#ifndef BOARD_H
#define BOARD_H

#include <QList>
#include <QString>
#include "relay.h"

#define BOARD_TYPE_NORMAL           0x00
#define BOARD_TYPE_CLOSE            0x01
#define BOARD_TYPE_REMOTE           0x02
#define BOARD_TYPE_REMOTE_RELAY1    0x03
#define BOARD_TYPE_REMOTE_RELAY2    0x04
#define BOARD_TYPE_REMOTE_RELAY3    0x05
// ...
#define BOARD_TYPE_UNKNOWN  0xFF

#define MAX_NUM_RELAY   10

class Board
{
public:
    Board();
    Board(quint8 id, QString& name, quint8 type);

public:
    quint8 mId;
    QString mName;
    quint8 mType;

    QList<Relay> mRelays;
};

#endif // BOARD_H
